import request from '@/utils/request'

// 创建轮播图分类
export function createInfoSlideshowType(data) {
  return request({
    url: '/alipay/info-slideshow-type/create',
    method: 'post',
    data: data
  })
}

// 更新轮播图分类
export function updateInfoSlideshowType(data) {
  return request({
    url: '/alipay/info-slideshow-type/update',
    method: 'put',
    data: data
  })
}

// 删除轮播图分类
export function deleteInfoSlideshowType(id) {
  return request({
    url: '/alipay/info-slideshow-type/delete?id=' + id,
    method: 'delete'
  })
}

// 获得轮播图分类
export function getInfoSlideshowType(id) {
  return request({
    url: '/alipay/info-slideshow-type/get?id=' + id,
    method: 'get'
  })
}

// 获得轮播图分类分页
export function getInfoSlideshowTypePage(query) {
  return request({
    url: '/alipay/info-slideshow-type/page',
    method: 'get',
    params: query
  })
}

// 导出轮播图分类 Excel
export function exportInfoSlideshowTypeExcel(query) {
  return request({
    url: '/alipay/info-slideshow-type/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
